/**
 * 
 */

/**
 * @author Shore
 *
 */
public class Aircraft {
	private int fuel;
	private int travelDistance;
	
	
		public Aircraft(){
			fuel=0;
		}
	
		public Aircraft(int newFuel){
				fuel=newFuel;
				
			
		}
		
		public int getFuel(){
			return fuel;
		}
		
		public int getTravel(){
			return travelDistance;
		}
		
		public void setFuel(int newFuel){
			if(fuel>=0){
				fuel=newFuel;
			}
			else{
				System.out.println("Invalid Fuel " + newFuel +": aborting set operation.");
			}

			
	}
		public void setDistance(int newTravelDistance){
			travelDistance=newTravelDistance;
		}
	
		
		public boolean travel(int travelDistance){
			if((travelDistance/50)<=fuel){
				boolean travel=true;
				fuel=fuel-(travelDistance/50);
				return travel; 
				
				
			}else{
				boolean travel=false;
				return travel;
			}
		}
	
	
		
}
